<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FuseKit2.1: class com.mosesSupposes.fuse.Fuse
</title><link type="text/css" rel="stylesheet" href="../../../as2doc.css">
<script type="text/javascript"><!--
<!--
function toggle(id) {
var e = document.getElementById(id);
if(e.style.display == 'none')
e.style.display = 'block';
else
e.style.display = 'none';
}
//-->
// --></script>
</head>
<body framespacing="0" topmargin="6" leftmargin="6" marginheight="6" marginwidth="6">
<div class="docindex"><a href="../../../index-right.html" class="head">Page Principale</a> | <a href="../../../com/mosesSupposes/fuse/package-summary.html" class="head" target="classFrame">Package</a> | <a href="../../../index-all.html" class="head">Index</a> | <a href="../../../help-doc.html" class="head">Aide</a></div>
<table border="0" cellpadding="0" cellspacing="4" width="100%" class="subnavigation"> <tr> <td><a href="CustomEasing.html">Pr&eacute;c&eacute;dent</a> | <a href="FuseFMP.html">Suivant</a></td> <td><a href="../../../index.html" target="_top">Frames (Montrer la navigation)</a> | <a href="Fuse.html" target="_top">Sans Frames</a></td> </tr> <tr> <td>Sommaire: <a href="#field_summary">Champs</a> | <a href="#prop_summary">Propri&eacute;t&eacute;</a> | <a href="#constr_summary">Constructeur</a> | <a href="#method_summary">M&eacute;thode</a></td> <td>D&eacute;tail: <a href="#field_detail">Champs</a> | <a href="#prop_detail">Propri&eacute;t&eacute;</a> | <a href="#constr_detail">Constructeur</a> | <a href="#method_detail">M&eacute;thode</a>
</td> </tr>
</table>
<hr size="1"><span class="packagename">com.mosesSupposes.</span><span class="packagename">fuse</span><br>
<h2>class Fuse</h2>
<p></p>
<pre class="code">Array
  |
  +--<b>com.mosesSupposes.</b><b>fuse.Fuse
</b> </pre>
<br>
<hr size="1">class <b>Fuse</b> <br>extends Array
<p></p>& animation sequencer that extends Array. <br>
<br>
<p></p>
<dl compact> <dt><b>Usage:</b> </dt> <dd> <div class="comment">To enable animation sequencing, pass Fuse to <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#register">ZigoEngine.register</a> or <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#simpleSetup">ZigoEngine.simpleSetup</a>.  <br> <br>Events dispatched: <ul> <li><code>onStart</code></li> <li><code>onStop</code></li> <li><code>onPause</code></li> <li><code>onResume</code></li> <li><code>onAdvance</code></code></li> <li><code>onComplete</code> </li> </ul> <br>Unlike ZigoEngine which uses AsBroadcaster, Fuse uses the mx EventDispatcher standard. <pre>var f:Fuse = new Fuse();
f.addEventListener("onComplete", myListenerObj); </pre> <br>The Fuse utility is comprised of: <ul> <li>& instance default settings</li> <li>Array methods (see <a href="../../../com/mosesSupposes/fuse/Fuse.html#push">push</a>)</li> <li>Play-control methods (see <a href="../../../com/mosesSupposes/fuse/Fuse.html#start">start</a>)</li> <li>Simple Syntax static methods (see <a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>)</li> <li>A runtime Object Syntax interpreter (see <a href="../../../com/mosesSupposes/fuse/Fuse.html#Fuse">Fuse</a>)</li> <li>Instance management methods (see <a href="../../../com/mosesSupposes/fuse/Fuse.html#getInstance">getInstance</a>) </li> </ul> <br>Fuse Object Syntax parameters are documented under the <a href="../../../com/mosesSupposes/fuse/Fuse.html#Fuse">Fuse</a> constructor. <br> <br>Fuse Simple Syntax parameters are documented under Fuse.<a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>. </div> </dd>
</dl>
<p></p>
<br>
<dl compact> <dt><b>Author:</b><br> </dt> <dd> <div class="comment">Moses Gunesch / MosesSupposes.com</div> </dd>
</dl>
<p></p>
<dl compact> <dt><b>Version:</b></dt> <dd> <div class="comment">2.1</div> </dd>
</dl>
<p></p>
<p></p>
<hr size="1">
<table border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"><a name="field_summary"></a> <h2>Field Summary</h2></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#AUTOCLEAR">AUTOCLEAR</a>: Boolean = false</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Class default:</i> <i>whether Fuse instances are automatically destroyed after playing once unless otherwise specified by instance-level <a href="../../../com/mosesSupposes/fuse/Fuse.html#autoClear">autoClear</a>.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#AUTOSTOP">AUTOSTOP</a>: Boolean = true</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Class default:</i> <i>whether Fuse instances stop when a tween is interrupted, or is destroyed if <a href="../../../com/mosesSupposes/fuse/Fuse.html#autoClear">autoClear</a> is turned on, unless otherwise specified by instance-level <a href="../../../com/mosesSupposes/fuse/Fuse.html#autoStop">autoStop</a>.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#OUTPUT_LEVEL">OUTPUT_LEVEL</a>: Number = 1 </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Class default:</i> <i>Controls how much feedback Fuse outputs, helpful for debugging.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#VERSION">VERSION</a>: String = FuseKitCommon.VERSION </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Class default:</i> <i>Enables kit version to be retrieved at runtime or when reviewing a decompiled swf.</i> <br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td colspan="2"><a name="prop_summary"></a> <h2>Property Summary</h2></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap class="summary_table"><a href="#autoClear">autoClear</a>: Boolean</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Instance default:</i> <i>Fuse instance is automatically destroyed after playing once.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap class="summary_table"><a href="#autoStop">autoStop</a>: Boolean </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Instance default:</i> <i>Fuse instance stops when any of its running tweens are interrupted, or is destroyed if <a href="../../../com/mosesSupposes/fuse/Fuse.html#autoClear">autoClear</a> is turned on.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#currentIndex">currentIndex</a>: Number (<span class="readproperty">read-only</span>) </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Retrieves the current play-index of a Fuse instance.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#currentLabel">currentLabel</a>: String (<span class="readproperty">read-only</span>) </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Retrieves the currently playing action's label, if defined.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap class="summary_table"><a href="#duration">duration</a>: Number</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Instance default:</i> <i>duration value in seconds for any action that does not specify one.</i><br></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap class="summary_table"><a href="#easing">easing</a>: Object</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Instance default:</i> <i>easing value for any action that does not specify one.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#id">id</a>: Number (<span class="readproperty">read-only</span>) </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Instance default:</i> <i>an auto-assigned numerical reference</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap class="summary_table"><a href="#label">label</a>: String</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Instance default:</i> <i>Convenience, allows you to name any Fuse.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap class="summary_table"><a href="#scope">scope</a>: Object</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Instance default:</i> <i>scope for all functions run from a Fuse if left unspecified within the action.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#state">state</a>: String (<span class="readproperty">read-only</span>) </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Retrieves a Fuse instance's current play-state string.</i> <br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#target">target</a>: Object (<span class="readproperty">read</span>, <span class="writeproperty">write</span>)</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Instance default:</i> <i>Sets one or more animation targets that will be used for any actions that don't specify their own.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td colspan="2"><a name="constr_summary"></a> <h2>Constructor</h2></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table"><br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#Fuse">Fuse</a> ( action: Object) </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>& management using familiar methods like <code>push()</code>.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td colspan="2"><a name="method_summary"></a> <h2>Method Summary</h2></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#addCommand">addCommand</a> ( commandOrScope: Object, indexOrFunc: Object, argument: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Simple Syntax:</i> <i>Multi-purpose method to add an inline Fuse command, delay, or function-call to the open Fuse.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#addEventListener">addEventListener</a> ( event: String, handler: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Add a listener for a particular event</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#addTarget">addTarget</a> ( t: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Adds to current default target list.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#clone">clone</a> ( ): Fuse</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Returns a copy of Fuse as a new Fuse instance.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#close">close</a> ( ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Simple Syntax:</i> <i>Completes the Fuse generated by <a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#closeAndStart">closeAndStart</a> ( setStart: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Simple Syntax:</i> <i>Close the open Fuse instance and start it playing.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#closeGroup">closeGroup</a> ( ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Simple Syntax:</i> <i>Closes an action group started by <a href="../../../com/mosesSupposes/fuse/Fuse.html#openGroup">openGroup</a>.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#destroy">destroy</a> ( ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Deletes all variables and properties in the Fuse instance.</i> <br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#fastForward">fastForward</a> ( resumeAtIndexOrLabel: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Fast-forwards animations in some or all remaining actions.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#getActiveTargets">getActiveTargets</a> ( includeDefaults: Boolean ): Array</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Gets both the default target list and any targets in the action currently being played.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#getInstance">getInstance</a> ( idOrLabel: Object ): Fuse</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Instance-management:</i> <i>Gets a Fuse instance by its id or label</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#getInstances">getInstances</a> ( stateFilter: String, targets: Object ): Array</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Instance-management:</i> <i>Get an array of some or all Fuse instances in active memory, with filtering options.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#open">open</a> ( fuseOrID: Object ): Fuse</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Simple Syntax:</i><i>Generate a new Fuse and begin intercepting tween calls until <a href="../../../com/mosesSupposes/fuse/Fuse.html#close">close</a> is called.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#openGroup">openGroup</a> ( fuseOrID: Object ): Fuse</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Simple Syntax:</i> <i>Begins a new animation group of simultaneous actions.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#pause">pause</a> ( ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Play-control:</i> <i>Pauses a playing Fuse instance and its running tweens.</i> <i>Waits for <a href="../../../com/mosesSupposes/fuse/Fuse.html#resume">resume</a> call to proceed.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#pop">pop</a> ( ): Object</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Removes the first element from a Fuse and returns that action object.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#push">push</a> ( ): Number</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Adds one or more elements to the end of a Fuse and returns the new length of the Fuse.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#pushTween">pushTween</a> ( targets: Object, props: Object, endvals: Object, seconds: Number, ease: Object, delay: Number, callback: Object ): Number</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Lets you add an item to the Fuse in ZigoEngine.doTween() syntax.</i> <i>Pushes tween arguments into Fuse instance and accepts the same arguments as ZigoEngine.doTween().</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#removeEventListener">removeEventListener</a> ( event: String, handler: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Remove a listener for a particular event</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#removeTarget">removeTarget</a> ( t: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Removes targets from the current default target list.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#resume">resume</a> ( ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Resumes a paused Fuse instance and its animations.</i> <i>Attempts to correct for animations that have been disrupted during pause.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#reverse">reverse</a> ( ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Reverse the sequence of the Fuse</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#setStartProps">setStartProps</a> ( trueOrItemIDs: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>General:</i> <i>Presets start-properties like <code>start_x</code> in all or specific items.</i> <br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#shift">shift</a> ( ): Object</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Removes the first element from a Fuse and returns that action object.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#skipTo">skipTo</a> ( indexOrLabel: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Play-control:</i> <i>Starts Fuse at a particular index/label.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#slice">slice</a> ( indexA: Number, indexB: Number ): Array</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Returns a new array instance consisting of a range of elements from the original array without modifying the original array.</i> <i>The array returned by this method includes the indexA element and all elements up to, but not including indexB element.</i> <i>If no parameters are passed, a duplicate of the original array is generated.</i> <i>For more information, see the Flash help explanation of Array.slice.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#splice">splice</a> ( startIndex: Number, deleteCount: Number ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Used to insert or remove items.</i> <i>Works almost exactly like Array.</i><i>splice.</i> <i>Removed actions are destroyed permanently, with the exception of nested Fuses.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#start">start</a> ( setStart: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Play-control:</i> <i>Begins sequence play at index 0, with option to set start props prior to play.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#startRecent">startRecent</a> ( setStart: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Simple Syntax:</i> <i>Restarts the Fuse most recently created using Fuse.</i><i><a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>().</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#stop">stop</a> ( ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Play-control:</i> <i>Stops a playing or paused Fuse instance and resets the play-index to 0.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#toString">toString</a> ( ): String</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#traceItems">traceItems</a> ( indexA: Number, indexB: Number ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Traces specific or all objects contained within the fuse</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#unshift">unshift</a> ( ): Number</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Adds one or more elements to the beginning of a Fuse and returns the new length of the Fuse.</i>
<br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td colspan="2"><br></td> </tr>
</table>
<hr size="1"><a name="field_detail"></a>
<h2>Field Documentation
</h2><a name="autoClear"></a>
<h3>autoClear</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public </span><span class="askeyword">var </span>autoClear:</span> <span class="code">Boolean</span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Instance default: Fuse instance is automatically destroyed after playing once. <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>var f:Fuse = new Fuse();
f.autoClear = true; </pre>In this example, the fuse instance f will delete itself after it plays through once, at which time you should also delete the variable <code>f</code> to prevent memory buffering issues.
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="AUTOCLEAR"></a>
<h3>AUTOCLEAR</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>AUTOCLEAR:</span> <span class="code">Boolean = false </span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Class default: whether Fuse instances are automatically destroyed after playing once unless otherwise specified by instance-level <a href="../../../com/mosesSupposes/fuse/Fuse.html#autoClear">autoClear</a>. <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>// once only
Fuse.AUTOCLEAR = true;
 
// later this can be overridden in any instance
var f:Fuse = new Fuse();
f.autoClear = false; </pre>When a Fuse is set to auto-remove itself it is best practice to not set a variable reference to that Fuse, which may cause memory buffering, or to delete the variable when the Fuse is complete. <br> <br>To override this default on a per-Fuse basis set the instance's <a href="../../../com/mosesSupposes/fuse/Fuse.html#autoClear">autoClear</a> property.
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="autoStop"></a>
<h3>autoStop</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public </span><span class="askeyword">var </span>autoStop:</span> <span class="code">Boolean </span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Instance default: Fuse instance stops when any of its running tweens are interrupted, or is destroyed if <a href="../../../com/mosesSupposes/fuse/Fuse.html#autoClear">autoClear</a> is turned on. <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment">This instance-level setting overrides the default setting Fuse.<a href="../../../com/mosesSupposes/fuse/Fuse.html#AUTOSTOP">AUTOSTOP</a>. If false an interrupted Fuse will recover and continue to play through. <pre>var f:Fuse = new Fuse();
f.autoStop = false; //override the default setting for this Fuse instance
</pre> </div> </dd> </dl> <p></p></td> </tr>
</table><a name="AUTOSTOP"></a>
<h3>AUTOSTOP</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>AUTOSTOP:</span> <span class="code">Boolean = true</span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Class default: whether Fuse instances stop when a tween is interrupted, or is destroyed if <a href="../../../com/mosesSupposes/fuse/Fuse.html#autoClear">autoClear</a> is turned on, unless otherwise specified by instance-level <a href="../../../com/mosesSupposes/fuse/Fuse.html#autoStop">autoStop</a>. <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>// once only
Fuse.AUTOSTOP = false; </pre>If this default is set false, Fuses will skip past any externally interrupted tweens and continue to play through. When Fuses are used in interactive devices like rollover states, it is best to leave this setting true to avoid conflicts between Fuse instances controlling the same behavior. <br> <br>Note that an interruption will not occur if new non-overlapping tweens are started on a clip that a Fuse is tweening. To enforce interruptions in such cases you can set ZigoEngine.com.mosesSupposes.ZigoEngine.AUTOSTOP to true, which causes all tweening properties in a clip to stop when a new tween is removed, or use ZigoEngine.com.mosesSupposes.ZigoEngine.removeTween prior to the call that may interrupt a Fuse.  <br> <br>To override this default on a per-Fuse basis set the instance's <a href="../../../com/mosesSupposes/fuse/Fuse.html#autoStop">autoStop</a> property.
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="duration"></a>
<h3>duration</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public </span><span class="askeyword">var </span>duration:</span> <span class="code">Number</span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Instance default: duration value in seconds for any action that does not specify one. <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment">This setting supercedes the default <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#DURATION">ZigoEngine.</a><a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#DURATION">DURATION</a> only for the Fuse instance it is set on, and is overrided by any action containing its own <code>seconds</code>, <code>duration</code>, or <code>time</code> parameter. <pre>var f:Fuse = new Fuse();
f.duration = 2;
f.push({ x:'100' }); // adopts new default
f.push({ y:'100', time:.5 }); // overrides default
</pre> </div> </dd> </dl> <p></p></td> </tr>
</table><a name="easing"></a>
<h3>easing</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public </span><span class="askeyword">var </span>easing:</span> <span class="code">Object</span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Instance default: easing value for any action that does not specify one. <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment">This setting supercedes the default <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#EASING">ZigoEngine.</a><a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#EASING">EASING</a> only for the Fuse instance it is set on, and is overrided by any action containing its own <code>ease</code> or <code>easing</code> parameter. <pre>var f:Fuse = new Fuse();
f.easing = "easeInOutCubic";
f.push({ x:'100' }); // adopts new default
f.push({ y:'100', ease:'easeInExpo' }); // overrides default
</pre> </div> </dd> </dl> <p></p></td> </tr>
</table><a name="label"></a>
<h3>label</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public </span><span class="askeyword">var </span>label:</span> <span class="code">String</span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Instance default: Convenience, allows you to name any Fuse. <p></p> <div class="comment">The Fuse label is used in output messages, and can be used to reference a Fuse instance in <a href="../../../com/mosesSupposes/fuse/Fuse.html#getInstance">getInstance</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#fastForward">fastForward</a> and Simple Syntax methods <a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a> and <a href="../../../com/mosesSupposes/fuse/Fuse.html#openGroup">openGroup</a>.</div> <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>var drawContentPage:Fuse = new Fuse();
drawContentPage.label = "drawContentPage";
</pre> </div> </dd> </dl> <p></p></td> </tr>
</table><a name="OUTPUT_LEVEL"></a>
<h3>OUTPUT_LEVEL</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>OUTPUT_LEVEL:</span> <span class="code">Number = 1 </span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Class default: Controls how much feedback Fuse outputs, helpful for debugging. <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>// once only
Fuse.OUTPUT_LEVEL = 3;</pre> <ul> <li>0 = no traces,</li> <li>& warnings</li> <li>2 = additional Fuse output</li> <li>3 = additional FuseItem output
</li> </ul> </div> </dd> </dl> <p></p></td> </tr>
</table><a name="scope"></a>
<h3>scope</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public </span><span class="askeyword">var </span>scope:</span> <span class="code">Object</span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Instance default: scope for all functions run from a Fuse if left unspecified within the action. <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>var f:Fuse = new Fuse();
f.scope = this;
f.push({target:menu, 
	start_alpha:0,
	x:getMenuX,
	y:getMenuY, 
	startfunc:"setupMenu", 
	updfunc:"onMenuFadeUpdate", 
	func:"onMenuShown"
});
f.push({ scope:contentArea,
	func:"drawContent"
}); </pre>In this example, all the functions in the first action, including the runtime-evaluation calls to supposed getMenuX and getMenuY methods will be auto-scoped to the Fuse's default scope (this). In the second action, drawContent is specifically scoped to the contentArea object, overriding the default. It's most useful to set a default scope when there will be many function calls within the sequence, to save you from specifically scoping each action.
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="VERSION"></a>
<h3>VERSION</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>VERSION:</span> <span class="code">String = FuseKitCommon.</span><span class="code">VERSION </span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Class default: Enables kit version to be retrieved at runtime or when reviewing a decompiled swf. <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>trace(Fuse.VERSION); // if the version is incorrect, clear your ASO cache.
</pre> </div> </dd> </dl> <p></p></td> </tr>
</table>
<hr size="1"><a name="prop_detail"></a>
<h2>Property Documentation
</h2><a name="currentIndex"></a>
<h3>currentIndex</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span>currentIndex</span></td> <td align="left" valign="top"><span class="code">:</span> <span class="code">Number (<span class="readproperty">read-only</span>)</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Retrieves the current play-index of a Fuse instance. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Value:</b></dt> <dd> <div class="comment">A number starting at 0 for the first action</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#state">state</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#currentLabel">currentLabel</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="currentLabel"></a>
<h3>currentLabel</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span>currentLabel</span></td> <td align="left" valign="top"><span class="code">:</span> <span class="code">String (<span class="readproperty">read-only</span>)</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Retrieves the currently playing action's label, if defined. <p></p> <div class="comment"> <pre>{ label:"introFade", start_alpha:0, start_brightOffset:100, time:1.5, ease:"easeInExpo" }</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Value:</b></dt> <dd> <div class="comment">A string set in the action object using the label property.</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#Fuse">Fuse</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#label">label</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#state">state</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#currentIndex">currentIndex</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="id"></a>
<h3>id</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span>id</span></td> <td align="left" valign="top"><span class="code">:</span> <span class="code">Number (<span class="readproperty">read-only</span>)</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Instance default: an auto-assigned numerical reference <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Value:</b></dt> <dd> <div class="comment">Internal id based on instance count.</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#label">label</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#getInstance">getInstance</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="state"></a>
<h3>state</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span>state</span></td> <td align="left" valign="top"><span class="code">:</span> <span class="code">String (<span class="readproperty">read-only</span>)</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Retrieves a Fuse instance's current play-state string. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Value:</b></dt> <dd> <div class="comment"><code>"stopped", "playing", or "paused"</code></div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#currentIndex">currentIndex</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="target"></a>
<h3>target</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span>target</span></td> <td align="left" valign="top"><span class="code">:</span> <span class="code">Object (<span class="readproperty">read</span>, <span class="writeproperty">write</span>)</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Instance default: Sets one or more animation targets that will be used for any actions that don't specify their own. <p></p> <div class="comment">Overwrites prior existing targets. <pre>var f:Fuse = new Fuse();
f.target = [clip1, clip2];</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Value:</b></dt> <dd> <div class="comment">a single animation target if one is set or an Array of targets if more than one is set.</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#addTarget">addTarget</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#removeTarget">removeTarget</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#getActiveTargets">getActiveTargets</a>
</div> </dd> </dl> <p></p></td> </tr>
</table>
<hr size="1"><a name="constr_detail"></a>
<h2>Constructor Documentation
</h2><a name="Fuse"></a>
<h3>Fuse</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier"></span><span class="askeyword">function </span>Fuse</span></td> <td align="left" valign="top"><span class="code">(fuseAction:</span><span class="code">Object [, fuseAction:</span><span class="code">Object, etc...</span><span class="code">]) </span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">& management using familiar methods like <code>push()</code>. <p></p> <dl compact> <dt><b>Usage:</b>
</dt> <dd> <div class="comment"> <pre><span style="color:#999999">// setup - once per FLA only</span>
import com.mosesSupposes.fuse.*;
ZigoEngine.register( Fuse, PennerEasing );

<span style="color:#999999">// build a short intro sequence to apply to box1_mc.</span>
var f:Fuse = new Fuse();
f.label = "swoopyIntro";
f.target = box1_mc;

f.push({ delay: .25 });

<span style="color:#999999">// labels can be used in some methods but are mostly a convenience.</span>
f.push({ label: "appear",
         start_scale: 500,
         start_alpha: 0,
         time: 1.75,
         ease: "easeOutBack",
         trigger: .5 <span style="color:#999999">// advances this action early</span>
        });


<span style="color:#999999">// the array brackets in this action form a group of parallel tweens</span>
f.push([ 
        { label: "swoop",
          x: "80",
          controlY: "50", <span style="color:#999999">// adds a bezier curve</span>
          time: 1.5,
          ease: "easeInOutBack"
         },
          
        <span style="color:#999999">// these tweens bounce back, by using 2 cycles</span>
        { brightOffset: 50,
          rotation: 10,
          ease: "easeInOutQuad",
          cycles: 2,
          time: .5,
          delay: .25 
        }
       ]);

<span style="color:#999999">// a simple callback.</span> <span style="color:#999999">You could also subscribe to the "onComplete" event.</span>
f.push({ func:"trace", args:"done!" });

f.traceItems();
f.start(true); <span style="color:#999999">// passing true presets start props - remove it to see a change.</span>
 </pre>Starts the Fuse and outputs: <pre>-Fuse "swoopyIntro" traceItems:
----------
-Fuse "swoopyIntro">Item #0: Elements:[delay]
-Fuse "swoopyIntro">Item #1 "appear": Elements:[trigger] StartProps:[_alpha, _scale] Props:[_scale, _alpha]
-Fuse "swoopyIntro">Item #2 "swoop": Props:[_brightOffset, _rotation, _bezier_]
-Fuse "swoopyIntro">Item #3: Elements:[callback]
----------
done!
 </pre>Once a Fuse Array contains at least one action it is <b>controllable</b> with the play methods <a href="../../../com/mosesSupposes/fuse/Fuse.html#start">start</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#setStartProps"></a> <a href="../../../com/mosesSupposes/fuse/Fuse.html#stop">stop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pause">pause</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#resume">resume</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#skipTo">skipTo</a>, and <a href="../../../com/mosesSupposes/fuse/Fuse.html#fastForward">fastForward</a>. Fuses dispatch the events listed at the top of this page during their play cycle. Start properties can be preset for all or a specific subset of actions, using the <a href="../../../com/mosesSupposes/fuse/Fuse.html#setStartProps">setStartProps</a> method or during any <a href="../../../com/mosesSupposes/fuse/Fuse.html#start">start</a> call. (If <code>true</code> were not passed during <code>start</code> in the example above, the target would be visible during the short delay in the first action.) Note that end values are <b>omitted</b> in the <code>"appear"</code> action, making use of Fuse's smart parsing to keep actions concise. Actions can be further <b>condensed</b> with the use of instance defaults <a href="#duration">duration</a>, <a href="#easing">easing</a>, <a href="#target">target</a>, and <a href="#scope">scope</a>. <br> <br>The power of Object Syntax is <b>structural</b>. It in fact has few parameters of its own &mdash; <code><code>label</code>, target/addTarget</code>, <code>event/eventparams</code>, <code>trigger</code>, <code>command</code> and a few extra time-notation options. <b>Standard ZigoEngine tweening parameters</b>, including user-defined variables, make up the bulk of what you'll see listed in any action. You can expect Object Syntax's features to be logical, intuitive and useful. <blockquote> <p><a href="#" class="medium" onClick="toggle('gettingStarted'); return false;">&plusmn;&nbsp;Getting started with Object Syntax</a></p> <div id="gettingStarted" style="display:none;"> <p>Fuse Object Syntax is detailed thoroughly below. To start experimenting with it, simply paste the code block above into a new FLA (AS2.0, 30 FPS), create a symbol on stage and name it <code>box1_mc</code>, then test the movie to see the clip swoop in.</p> <p>The <code>trigger</code> found in the <code>"appear"</code> action allows the animation to overlap with the next action, like motion tweens in a layered timeline, by advancing early. As your first test, remove or comment out the <code>trigger</code> to see the difference in how the Fuse plays. Leave it out as you move on, to eliminate potential property-collision the trigger can create (which Fuse handles gracefully, but may create visual confusion for learners). <br> <br>If you have Flash 8 or higher, add <code>FuseFMP</code> to the register call at top, then try adding <code>start_Blur_blur:</code><code>50</code> to the <code>"appear"</code> action. Next, <code>push</code> a few new actions into the sequence just before the final trace action, and use them to try features listed below &mdash; the best way to familiarize yourself with Object Syntax is through hands-on testing. <br> <br><i>Hints:</i> If you're using the Fuse Kit Extension, sidebar of Flash's Actions panel contains a comprehensive list of Fuse methods, properties, Object Syntax parameters and more, all of which will write themselves into your code on double-click. When writing Object Syntax, pay close attention to brackets and commas. Fuse has its own set of error messages that can resemble compiler errors (esp. in Flash 6-8) so be sure to read any errors carefully.</p> </div> <p><a href="#" class="medium" onClick="toggle('mechanics'); return false;">&plusmn;&nbsp;Object Syntax Mechanics (advanced topic)</a></p> <div id="mechanics" style="display:none;"> <p>Fuse actions are pre-parsed as much as possible as they're added to the Fuse. But Fuse's action interpreter is <b>highly active at runtime</b> as each item begins playing.  <br> <br>Internally, standalone program events, delays, callbacks, and boolean property-setters are split off from animation when possible, or at other times blocked with tweens when tight synchronization is called for. All internal tween calls Fuse makes to the engine are monitored carefully for potential failures (which can be caused by no-duration tweens, boolean-setter-only actions and <code>skipLevel</code> settings) to keep the sequence from stalling. Any elements left dangling are picked up in the case of such a failure. Tween interruptions are also handled carefully to determine whether a Fuse containing an advance-trigger might be overwriting one of its own tweens during advance, or if auto-stop functionality should otherwise be honored due to an external interruption. <br> <br>These complex internal mechanics support Fuse's <b>robust runtime parsing capabilities</b>. Its ability to suss out missing end-values when only start-values are provided includes returning any 'open' property (such as x or y) to its current position just before that tween executes. To help you avoid hard-coding sequences, any start or end value can be set to a function (or Delegate) returning that value, and it will be queried as the action executes, allowing you to keep things on-the-spot. Because Fuse can tie directly into your program via callbacks and events, it's also possible to generate, alter, or conditionally skip through Fuse sequences on the fly, or use a Fuse to control other Fuses.<br> <br> </p> </div> <p><a href="#" class="medium" onClick="toggle('async'); return false;">&plusmn;&nbsp;Working with asynchronous events (advanced topic)</a></p> <div id="async" style="display:none;"> <p>One common question from advanced programmers is whether Fuse can be set up to work with asynchronous program events, such as a sequential loader that waits for an onLoad handler before advancing. The answer is that Fuse does not automate such behavior but that it is easily achieved manually. (It turns out such automation is impractical in the real world. Consider a simple loader class like <code>MovieClipLoader</code>. Using it requires instantiation, writing and wiring custom event handlers that tie back into your program's code &mdash; Simply too much to do in-sequence.) <br> <br>It is easy to do nonetheless, by adding an inline <code>{command:</code><code>"pause"}</code> action which makes the Fuse wait for your asynchronous event to fire. Set up the dispatching object and any custom event handlers outside the Fuse. Sometimes that routine can be encapsulated in a method triggered by the Fuse. Whatever kicks off the delay, a <code>loadClip</code> call for instance, could also be fired from the Fuse sequence if convenient. <br> <br>Once things are set up and your Fuse has self-paused, the final step is to set up a way to resume the sequence when your event fires. If you're already writing a custom handler for this event you can simply <code>resume()</code> the Fuse in that method's code. (<i>Tip:</i> Use <code>Fuse.getInstance()</code> to contact your Fuse from any scope.) You can also very easily wire any event directly to a Fuse's resume method.  <br> <br>For example: <code>myMCL.addListener({onLoadInit:</code><code>Delegate.create(f,f.resume)});</code>. The fact that MovieClipLoader uses <code>addListener</code> instead of <code>addEventListener</code> (while another class might use yet another event model) is further evidence that this sort of automation is best left to you, and is little of Fuse's business.  <br> </p> </div> <br> </blockquote><b>Object Syntax Detail</b> <br> <br>Fuse action objects may be: <ul> <li>Generic objects containing parseable properties <br><code>{ target:</code><code>clip1, x:</code><code>10, seconds:</code><code>2, ease:</code><code>Strong.</code><code>easeInOut }</code></li> <li>An array of such action objects which creates a simultaneous tween Group <br><code>[ { x:</code><code>10, seconds:</code><code>2, ease:</code><code>Strong.</code><code>easeInOut }, { start_alpha:</code><code>0, seconds:</code><code>.5 } ]</code><br> </li> <li>A nested Fuse which will play as an action <br><code>myFuse2</code><br> <br>& run myFuse3 which contains and runs myFuse4 and so on. <br> <br>Nested Fuses many not appear within groups (the Array syntax in the previous point). However it is quite possible to start secondary Fuses from any action or action group with commands like <code>{ scope:</code><code>myFuse2, func:</code><code>"start" }</code>. See a more complex example of this below under the <code>command</code> parameter.</li> <li>"Applied actions": a special format for reusing actions by including an <code>action</code> property. <br> <br>For example if an action <code>var intro:</code><code>Object = { ...</code> <code>}</code> has been defined, you can then include it in later Fuse actions like this: <br><code>{ target:</code><code>clip1, action:</code><code>intro }</code> <br> <br>This lets you build multi-purpose behaviors that can be used with different targets, perhaps a custom fade or movement effect. <br>Applied actions may contain the following properties that modify the base action: <code>delay, target, addTarget, label, trigger</code>. <br>While <code>target</code> overrides, <code>addTarget</code> concatenates targets with any that are defined in the action. See below for info on other properties. <br> <br>Applied actions may be included in groups; the action property can also be an array itself. Note that "runtime evaluation" (below) is not supported with the action property itself, although sub-properties in the applied action may make use of that feature. </li> </ul> <br>Fuse action-object properties may be: <ul> <li><b>Parseable properties</b>, listed below</li> <li><b>Any custom property</b> you wish to tween (should be pre-declared and set to a number)</li> <li><b>Start values:</b> Prepend <code>start_</code> to any property and it will be set prior to tweening.</li> <li><b>Omitted:</b> Fuse's smart parsing allows you to avoid needing a start and end value for every property. When a start value is omitted, the property's current value is used as in ZigoEngine. When a start-value is included but the end value is omitted, Fuse inserts an end value in one of two ways:</li> <ul> <li><em>Natural reset:</em> Known properties with a natural reset value like _rotation:0, _alpha:100, _brightOffset:0, etc., auto-fill the end value as such. For example a fade-in effect can be generated with the simple action <code>{start_alpha:</code><code>0}</code> which will tween to 100 automatically.</li> <li><em>Open properties:</em> Props like _x or _width that do not have a natural reset are auto-filled to their value prior to the tween. In this action a clip will be moved offscreen then slide back to its current location: <code>{ start_x:</code><code>-100, start_y:</code><code>-100 }</code>. </li> </ul> </ul> <br>Fuse action-object values may be types: <ul> <li><b>Number</b> - a tween's end position. <code>x:</code><code>100</code></li> <li><b>String</b> - calculate tween using <b>relative</b> positioning. <br>Example: <code>rotation:</code><code>"-90"</code> yields a counter-clockwise rotation.</li> <li><b>Boolean</b> values, set at start or end of tween. <br>Example: <code>start_visible:</code><code>true</code></li> <li><b>Tint</b> values can be Number (<code>0x000000</code>), String (<code>"#000000"</code>), or <code>null</code> (reset) <br>Example: <code>tint:</code><code>"#FF3300"</code></li> <li><b>Time</b> is specified in seconds, and may be Number or timecode-String format. <br>Examples: <code>seconds:</code><code>2</code>, <code>startAt:</code><code>"01:75"</code> - timecode for a 1.75-second delay</li> <li><b>Function</b> - (Advanced) "Runtime evaluation" - function is queried as the action is played in the sequence. Functions should return values appropriate to the property. <br>Example: <code>{ x:</code><code>function(){ return _root.</code><code>_xmouse; } }</code> <br> <br>This is a powerful feature that helps eliminate the need to hardcode values in advance. Fuses can be written to be "live", querying for targets and values themselves by retrieving state variables from within your program. <br> <br>Such functions will be scoped first to the action then the Fuse instance's <code>scope</code> property. If <code>scope</code> is already being used for callbacks, you can use a Delegate to individually scope runtime-evaluation functions.</li> <li><b>Multi-value Object or Array</b> - (Advanced) A new feature is the ability to directly tween multiple values in an Object or Array. Note that like any custom variables these objects must exist prior to tweening and have their properties set to numerical values in advance. <br>Examples: <code>{ myArray:</code><code>[10,20], myMatrix:{</code><code>a:</code><code>0, b:</code><code>1, tx:</code><code>100}, GradientBevel_colors:</code><code>[0xFF0000, 0x333333, 0x00FFFF] }</code></li> <li><b>Colors Array</b> - (Advanced) Tweening a generic array of color values can help with situations like tweening the properties of a gradient fill that's redrawn on tween update. Any array whose name contains 'colors' (case is ignored) will be handled by the engine as an array of color values. Note that the internal colortransforms are not applied to any target, simply updated within the array. <br>Example: <code>{ myColors:</code> <code>[ 0x000000, 0xFFFFFF ], scope:</code><code>this, updfunc:</code><code>'redrawGradient' }</code> </li> </ul> <br>Parseable properties: <ul> <li><code>label</code> An action's string id, used for skipTo and fastForward. Groups are considered single actions by Fuse. (To label a group include a label within any of its sub-actions.) As a convenience, labels also appear in output messages.</li> <li><code>target</code> Animation target or Array of targets. Overrides the instance's default <a href="../../../com/mosesSupposes/fuse/Fuse.html#target">target</a> list.</li> <li><code>addTarget</code> Concatenates one or an Array of targets with the default <a href="../../../com/mosesSupposes/fuse/Fuse.html#target">target</a> list.</li> <li><code>ease or easing</code> Accepts same formats as <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doTween">ZigoEngine.doTween</a>'s easing parameter.</li> <li><code>seconds, time or duration</code> See time formatting above.</li> <li><code>delay or startAt</code> See time formatting above.</li> <li><code>event</code> String declaring a custom event that should be dispatched by the engine. <br>Subscribe to this custom event on the Fuse instance the same as you would for built-in events (see header).</li> </ul> <p>&nbsp;</p> <ul> <li><code>func</code> Function, string name of function, or Easyfunc string like <code>"myClip.doSomething(true);"</code> (<a href="../../../com/mosesSupposes/fuse/Shortcuts.html">Shortcuts</a> must be registered to use the easyfunc feature.)</li> <li><code>scope</code> Object - overrides instance default <a href="../../../com/mosesSupposes/fuse/Fuse.html#scope">scope</a>. Note that in Fuse actions this property is special in that it will be applied to all callbacks or runtime-evaluation functions if not otherwise defined.</li> <li><code>args</code> One argument or an array of arguments to pass to the <code>func</code> callback.</li> <li><code>startfunc</code> Callback fired after any delay and as tween is starting. Supports various formats - see func above.</li> <li><code>startscope</code> If not defined, the <code>scope</code> property or instance default <a href="../../../com/mosesSupposes/fuse/Fuse.html#scope">scope</a> will be used.</li> <li><code>startargs</code> One argument or an array of arguments to pass to the <code>startfunc</code> callback.</li> <li><code>updfunc</code> Callback fired on engine pulse as the tweens in the action are updated. Accepts various formats - see func above.</li> <li><code>updscope</code> If not defined, the <code>scope</code> property or instance default <a href="../../../com/mosesSupposes/fuse/Fuse.html#scope">scope</a> will be used.</li> <li><code>updargs</code> One argument or an array of arguments to pass to the <code>updfunc</code> callback.</li> <li><code>extra1</code> Optional fifth parameter sent to easing method. Elastic easing amplitude or Back easing overshoot.</li> <li><code>extra2</code> Optional sixth parameter sent to easing method. Elastic easing period.</li> <li><code>_bezier_</code> (Not necessary, see controlX, controlY below.) Generic object with some or all of the properties <code>{x:</code><code>,y:</code><code>,controlX:</code><code>,controlY:</code><code>}</code>. Relative (string) values are okay. Note that only one control param is necessary to generate a curved motion path.</li> <li><code>controlX, controlY</code> Including one or both of these parameters in a Fuse action along with x and/or y generates a bezier curve similar to using the _bezier_ property but without the need for a nested object.</li> <li><code>cycles</code> An integer 2 or higher, tweens back and forth between start and end positions. Infinite cycles (0 or "LOOP" in <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doTween">ZigoEngine.doTween</a>) are not allowed in Fuses.</li> <li><code>roundResults</code> Overrides the class setting <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#ROUND_RESULTS">ZigoEngine.</a><a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#ROUND_RESULTS">ROUND_RESULTS</a> for an individual action. Useful for instance, if the class default is true but you need to execute a tween such as DropShadow_alpha which requires a 0-1 range.</li> <li><code>skipLevel</code> 0,1, or 2. An advanced behavior setting for cases where tweens fail. See <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#SKIP_LEVEL">ZigoEngine.</a><a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#SKIP_LEVEL">SKIP_LEVEL</a> for details. In Fuse, this parameter also applies to the custom <code>event</code> parameter, although standard Fuse events like <code>onComplete</code> are not skipped.</li> <li><code>trigger</code> May be set as seconds (see time formatting above) or set to <code>true</code> if in a group to indicate advance after the item trigger is grouped with. <br>Advances the sequence prior to action completion. This is a powerful feature that makes sequencing far less rigid and more timeline-like. <br>Example 1: In this group the sequence advances after the fade action. <code>[ { start_alpha:</code><code>0, seconds:</code><code>.5, trigger:</code><code>true}, { x:</code><code>'100', seconds:</code><code>3 } ]</code> <br>Example 2: Here the sequence advances after 1.5 seconds, while the action takes 3 seconds. <code>{ width:</code><code>500, delay:</code><code>1, seconds:</code><code>2, trigger:</code><code>1.5 }</code> <br> <br>Note that the <code>onComplete</code> Fuse event is not fired until any trailing tweens from triggered actions finish.</li> <li><code>command</code> String "start","stop","pause","resume","skipTo", or "setStartProps". <br>Allows actions to control Fuse play. <br>Example: a final action of <code>{command:</code><code>"start"}</code> causes the Fuse to loop. <br>Commands should be separate actions. They may not appear within action groups or be blocked with tweens or callbacks. <br>Actions containing a <code>command</code> property may ONLY contain the additional properties: <code>scope, args, label, delay</code>. <br>Note that any arguments in <code>args</code> are sent to the Fuse command, and <code>scope</code> is only used for runtime-evaluation of other params set to function (see "Runtime-evaluation" above). <br> <br>Examples of a command with an argument: <code>{ command:</code><code>"skipTo", args:</code><code>3 }</code>, <code>{ command:</code><code>"start", args:</code><code>true }</code></li> <li><span style="text-decoration:line-through"><code>easyfunc</code></span> Removed from kit. <code>func, startfunc, updfunc</code> parameters now accept easyfunc strings (see func above). </li> </ul>(Advanced) The following example illustrates how command actions can be used in more complex arrangements. Here a complex group of Fuses is associated by controlling each other, without the use of nested Fuses.<br> <pre>& pause:
fuseA.push([{scope:fuseB, func:"start"},
				 {scope:fuseC, func:"start"} ]);
fuseA.push({ command:"pause" }); // keep command in a separate action
// .. continue pushing actions into fuseA here.
// .. fuseA will resume when fuseC hits its final "resume" action. </pre> <br>Unless you have set <code>FuseItem.</code><code>ADD_UNDERSCORES</code> to false, your Fuse actions may <i>optionally</i> omit underscores for the known properties below, listed here without. For descriptions of ZigoEngine properties (shown in bold), look up their underscored counterparts in <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doTween">ZigoEngine.doTween</a>. <ul> <li><code>alpha</code></li> <li><b><code>brightOffset</code></b></li> <li><b><code>brightness</code></b></li> <li><b><code>colorReset</code></b></li> <li><b><code>colorTransform</code></b></li> <li><b><code>contrast</code></b></li> <li><b><code>fade</code></b></li> <li><b><code>frame</code></b></li> <li><code>height</code></li> <li><b><code>invertColor</code></b></li> <li><code>rotation</code></li> <li><b><code>scale</code></b></li> <li><b><code>size</code></b></li> <li><b><code>tint</code></b></li> <li><b><code>tintPercent</code></b></li> <li><code>visible</code></li> <li><code>width</code></li> <li><code>x</code></li> <li><code>xscale</code></li> <li><code>y</code></li> <li><code>yscale</code></li> </ul> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">fuseAction</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">One or more generic "action" objects or arrays in Fuse Object Syntax constituting a sequence.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#target">target</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#scope">scope</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#push">push</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pushTween">pushTween</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>
</div> </dd> </dl> <p></p></td> </tr>
</table>
<hr size="1"><a name="method_detail"></a>
<h2>Method Documentation
</h2><a name="addCommand"></a>
<h3>addCommand</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>addCommand</span></td> <td align="left" valign="top"><span class="code">(commandOrScope:</span> <span class="code">Object, </span> <br><span class="code"> indexOrFunc:</span> <span class="code">Object, </span> <br><span class="code"> argument:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left"><p>Multi-purpose method for all non-animation Simple Syntax features.</p> <h4>Usage</h4> <div class="comment"> <pre>var f:Fuse = new Fuse();
 
// <b>callback</b>: scope, func, args
Fuse.addCommand(this, "setItemData", 0, "Submit", true);
 
// <b>delay</b>
Fuse.addCommand("delay", .5);
 
// <b>inline Fuse play-command</b>: 
// this final action will cause the Fuse to loop
Fuse.addCommand("start");
 
// <b>advance-trigger</b> (should appear within group)
Fuse.addCommand("trigger", .5);</pre> </div> <p>Some addCommand calls are allowed inside groups (<code>'delay','trigger'</code>, function-calls), but most are not. For instance if you want to have a Fuse pause itself, place the command <code>Fuse.addCommand('pause');</code> outside any <code>Fuse.openGroup();</code> blocks. <p>The <code>'trigger'</code> feature should appear within groups and adds powerful flexibility for animators: <p>Just as delays can stagger the start times of grouped tweens, triggers allow the ends of grouped animations to overlap with the following action by advancing the action early. For example if an action contains two tweens, the longest of which is 2 seconds plus a 1-second delay, including <code>Fuse.addCommand("trigger", 2.5);</code> in the group would advance the Fuse to the next action half a second before the running tweens complete. This adds timeline-like flexibility and helps you keep your sequences less rigid.<br> </td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">commandOrScope</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Accepts: <code>'delay','trigger','start','stop','pause','resume','skipTo','setStartProps'</code> or in the case of a function-call a scope such as <code>this</code>.</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">indexOrFunc</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Varies based on first argument: <code>'delay', 'trigger' </code>: Number of seconds. <code>'skipTo'</code>: Destination index (starting at 0 for the first action). For function-call, a string of the function name such as <code>'trace'</code>.</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">argument</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Function-call: Any number of arguments can follow and will be passed during the call.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#openGroup">openGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeGroup">closeGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#close">close</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeAndStart">closeAndStart</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#startRecent">startRecent</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="addEventListener"></a>
<h3>addEventListener</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>addEventListener</span></td> <td align="left" valign="top"><span class="code">(event:</span> <span class="code">String, </span> <br><span class="code"> handler:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Add a listener for a particular event <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">event</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">the name of the event ("onComplete", etc)</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">handler</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">the function or object that should be called</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#removeEventListener">removeEventListener</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="addTarget"></a>
<h3>addTarget</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>addTarget</span></td> <td align="left" valign="top"><span class="code">(t:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Adds to current default target list. <p></p> <div class="comment"> <pre>myFuse.addTarget(clip5);</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">t</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">accepts one or more targets, or an array of targets</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#target">target</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#removeTarget">removeTarget</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#getActiveTargets">getActiveTargets</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="clone"></a>
<h3>clone</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>clone</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Fuse</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Returns a copy of Fuse as a new Fuse instance. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">new Fuse instance with default settings and actions.</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#push">push</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pushTween">pushTween</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pop">pop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#unshift">unshift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#shift">shift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#splice">splice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#slice">slice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#reverse">reverse</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#clone">clone</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="close"></a>
<h3>close</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>close</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Simple Syntax: Completes the Fuse generated by <a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>. <p></p> <div class="comment">It is important that you complete each Fuse created using <code>Fuse.open()</code> using either <code>Fuse.close()</code> or <code>Fuse.closeAndStart()</code>. You cannot call <code>start</code> on a Fuse instance while Fuse is open. <pre>var runSetup:Fuse = Fuse.open();
Fuse.addCommand(this, "callbackOne");
Fuse.addCommand("delay", .25);
Fuse.addCommand(this, "callbackTwo");
Fuse.addCommand("delay", .25);
Fuse.addCommand(this, "callbackThree");
Fuse.close();
 
// later in program...
runSetup.start(); // reference the Fuse created
</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#openGroup">openGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeGroup">closeGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeAndStart">closeAndStart</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#startRecent">startRecent</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#addCommand">addCommand</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="closeAndStart"></a>
<h3>closeAndStart</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>closeAndStart</span></td> <td align="left" valign="top"><span class="code">(setStart:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Simple Syntax: Close the open Fuse instance and start it playing. <p></p> <div class="comment"> <pre>var runSetup:Fuse = Fuse.open();
clip1.fadeOut();
clip2.fadeOut();
clip3.fadeOut();
Fuse.closeAndStart();</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">setStart</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">A <a href="../../../com/mosesSupposes/fuse/Fuse.html#setStartProps">setStartProps</a> call is generated from all arguments before the Fuse begins playing.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#openGroup">openGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeGroup">closeGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#close">close</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#startRecent">startRecent</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#addCommand">addCommand</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="closeGroup"></a>
<h3>closeGroup</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>closeGroup</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Simple Syntax: Closes an action group started by <a href="../../../com/mosesSupposes/fuse/Fuse.html#openGroup">openGroup</a>. <p></p> <div class="comment">May be omitted if followed by <code>Fuse.close</code> or <code>Fuse.closeAndStart</code>. <br> <br>If <code>Fuse.openGroup()</code> is called while a previous group was open, the preceding group is closed automatically and the <code>closeGroup</code> command can be skipped. <pre>Fuse.open();
clip1.tween("_x","100");
Fuse.openGroup();
 clip1.tween("_x","-100");
 clip2.tween("_scale",200);
Fuse.closeGroup();
clip1.scaleTo(0);
clip2.scaleTo(0);
Fuse.closeAndStart();</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#openGroup">openGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#close">close</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeAndStart">closeAndStart</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#startRecent">startRecent</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#addCommand">addCommand</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="destroy"></a>
<h3>destroy</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>destroy</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Deletes all variables and properties in the Fuse instance. <p></p> <dl compact> <dt><b>Usage:</b> </dt> <dd> <div class="comment">You should remove all listeners before calling destroy(), then after the call delete any variable references to the instance cleared. 
<pre>myFuse.removeEventListener('onComplete',this);
myFuse.destroy();
delete myFuse;
</pre> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#autoClear">autoClear</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#AUTOCLEAR">AUTOCLEAR</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#getInstance">getInstance</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="fastForward"></a>
<h3>fastForward</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>fastForward</span></td> <td align="left" valign="top"><span class="code">(resumeAtIndexOrLabel:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Fast-forwards animations in some or all remaining actions. <p></p> <div class="comment">Behavior: <ul> <li>Calling with no arguments: Fast-forwards all remaining animation in the Fuse. The onComplete event is fired.</li> <li>Passing a positive or negative integer or string: Fast-forwards up to, then resumes play at the index specified. Negative integer counts back from last item, string locates an action or nested Fuse by its label property.</li> <li>Callbacks and events are disregarded during fast-forwarding.</li> <li>If you pass 0 or an index that has already played, a warning is thrown and skipTo is called instead.</li> <li>Note that when passing a label string, nested Fuse instance labels are scanned but not action labels within nested Fuses. To fast-forward to a specific point in a nested Fuse, first call fastForward to advance to the primary Fuse, then a second time on the secondary Fuse.</li> <li>Fuse does not include any similar animation-rewinding method, which would not be practical for a number of reasons within its current architecture.</li> </ul> </div> <p></p> <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>// fast-forward all animations and end fuse:
myFuse.fastForward();
 
// fast-forward from current index and resume play at index 8
myFuse.fastForward(8);
 
// fast-forward then resume at a labeled action like { x:"100", label:"slider" }
myFuse.fastForward("slider");
 
// fast-forward but play final action
myFuse.fastForward(-1);
 </pre>The following example demonstrates fast-forwarding to an index within a nested Fuse instance, and also shows how a nested Fuse's label property can be used to fast-forward to. Note that the fast-forward commands could alternatively be written using positive or negative integers as in the examplese above. <pre>var nestedFuse1:Fuse = new Fuse(
	{ rotation:180, label:"spin" },
	{ tint:0x33FF00, tintPercent:50, label:"tint" }
);
nestedFuse1.label = "NF1";
nestedFuse1.target = clip1_mc;
 
var mainFuse:Fuse = new Fuse(
	{ x:"100", label:"slideRight" },
	nestedFuse1,
	{ x:"-100", label:"slideLeft" }
);
mainFuse.target = clip1_mc;
mainFuse.start();
 
// fast-forward to the "tint" action by using two fastForward calls.
mainFuse.fastForward("NF1"); // first jump to the nested Fuse using its label
nestedFuse1.fastForward("tint"); // then jump to the tint action using its label
</pre> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">resumeAtIndexOrLabel</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Numerical item index or label string to fast-forward up to and resume playing at.<br> </div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#start">start</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#stop">stop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pause">pause</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#resume">resume</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#skipTo">skipTo</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="getActiveTargets"></a>
<h3>getActiveTargets</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>getActiveTargets</span></td> <td align="left" valign="top"><span class="code">(includeDefaults:</span> <span class="code">Boolean):</span> <span class="code">Array</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Gets both the default target list and any targets in the action currently being played. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">includeDefaults</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">If true is passed, list includes the Fuse instance's default target list plus active action targets.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">Array of targets currently being handled by the playing or paused action, plus the Fuse instance's default target list if true was passed. <br> <br>If the Fuse instance queried is stopped, an empty array is returned.</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#target">target</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#addTarget">addTarget</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#removeTarget">removeTarget</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="getInstance"></a>
<h3>getInstance</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>getInstance</span></td> <td align="left" valign="top"><span class="code">(idOrLabel:</span> <span class="code">Object):</span> <span class="code">Fuse</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Instance-management: Gets a Fuse instance by its id or label <p></p> <div class="comment">This simple method returns one known Fuse instance. For more complex options use <a href="../../../com/mosesSupposes/fuse/Fuse.html#getInstances">getInstances</a>.</div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">idOrLabel</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Fuse's numerical <a href="../../../com/mosesSupposes/fuse/Fuse.html#id">id</a> or <a href="../../../com/mosesSupposes/fuse/Fuse.html#label">label</a> identifying a unique Fuse instance.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">a Fuse instance if found or null if not</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#getInstances">getInstances</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="getInstances"></a>
<h3>getInstances</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>getInstances</span></td> <td align="left" valign="top"><span class="code">(stateFilter:</span> <span class="code">String, </span> <br><span class="code"> targets:</span> <span class="code">Object):</span> <span class="code">Array</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Instance-management: Get an array of some or all Fuse instances in active memory, with filtering options. <p></p> <div class="comment"> <pre>// get currently playing Fuses that handle the target my_mc
var myMcFuses:Array = Fuse.getInstances("playing",my_mc);
 
// get all the Fuses in active memory
var fuses:Array = Fuse.getInstances();</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">stateFilter</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">nothing/null/<a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">ALL</a> for all Fuse instances in active memory, or a play state "playing", "stopped" or "paused"</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">targets</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">optional - a single target, an Array of targets, or a list of targets starting with the second param.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">an array containing one or more Fuse instances matching search criteria</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#getInstance">getInstance</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="open"></a>
<h3>open</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>open</span></td> <td align="left" valign="top"><span class="code">(fuseOrID:</span> <span class="code">Object):</span> <span class="code">Fuse</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Simple Syntax:Generate a new Fuse and begin intercepting tween calls until <a href="../../../com/mosesSupposes/fuse/Fuse.html#close">close</a> is called. <p></p> <div class="comment">Simple Syntax is an alternative way to construct Fuse sequences. Its primary uses are 1. Clear method-call sequencing and 2. An easy way for non-advanced coders to set up sequences.</div> <p></p> <dl compact> <dt><b>Usage:</b>
</dt> <dd> <div class="comment"> <pre>// Example 1: Can be used to enforce a clear, strict order of timed events
Fuse.open();
 Fuse.addCommand (mainMenu, "draw", menuXML);
 Fuse.addCommand ("delay", .5);
 Fuse.addCommand (contentPage, "loadContent", firstItem);
 Fuse.addCommand (screenDisplay, "exposeLayout");
 Fuse.addCommand ("delay", 2);
 Fuse.addCommand (this, "onResize");
 Fuse.addCommand (Logger, "output", "Setup sequence complete.", 0);
Fuse.close();
 
// Example 2: Simple Syntax with shortcut tweens
Fuse.open();
 box_mc.slideTo(150,150, 1);
 Fuse.openGroup();
  box_mc.scaleTo(250, 1);
  box_mc.brightnessTo(-50, 2);
 Fuse.closeGroup();
 box_mc.colorTo(0x6633FF, 1);
Fuse.closeAndStart();
 </pre> <br>You may retrieve the Fuse instance created, or reopen an existing Fuse: <pre>var f:Fuse = Fuse.open(); // store a reference to the Fuse
// later...
Fuse.open(f); // reopen existing
// or...
Fuse.open(0); // open Fuse with id 0
// or...
Fuse.open("introSequence"); // open Fuse with the label "introSequence" </pre> <br>If you mostly use simple syntax and don't reuse your Fuses, it's recommended that you set <a href="../../../com/mosesSupposes/fuse/Fuse.html#AUTOCLEAR">AUTOCLEAR</a> to true to avoid memory buffering.</div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">fuseOrID</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">(Optional) Pass an existing Fuse, or its id or label to reopen it.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">The opened Fuse instance that tween calls will be routed to until close() is called.</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#openGroup">openGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeGroup">closeGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#close">close</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeAndStart">closeAndStart</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#startRecent">startRecent</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#addCommand">addCommand</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#id">id</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#label">label</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="openGroup"></a>
<h3>openGroup</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>openGroup</span></td> <td align="left" valign="top"><span class="code">(fuseOrID:</span> <span class="code">Object):</span> <span class="code">Fuse</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Simple Syntax: Begins a new animation group of simultaneous actions. <p></p> <div class="comment"><code>Fuse.openGroup();</code> can be called in place of <code>Fuse.open();</code>. <br> <br>If <code>Fuse.openGroup();</code> is called while a previous group was open, the preceding group is closed automatically. <pre>// use in place of Fuse.open() to begin a new Fuse.
Fuse.openGroup();
 clip1.tween("_x","100");
 clip2.tween("_scale",200);
Fuse.openGroup(); // you can skip closeGroup if opening another group.
 clip1.tween("_x","-100");
 clip2.tween("_scale",100);
Fuse.closeAndStart(); // you can skip closeGroup here too.
</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">fuseOrID</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">fuseOrID:Fuse (Optional) an existing Fuse or Fuse's id or label in which to open the new group.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">The currently open fuse instance or a new Fuse if openGroup was called prior to open().</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeGroup">closeGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#close">close</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeAndStart">closeAndStart</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#startRecent">startRecent</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#addCommand">addCommand</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#id">id</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#label">label</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="pause"></a>
<h3>pause</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>pause</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Play-control: Pauses a playing Fuse instance and its running tweens. Waits for <a href="../../../com/mosesSupposes/fuse/Fuse.html#resume">resume</a> call to proceed. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#start">start</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#stop">stop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#resume">resume</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#skipTo">skipTo</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#fastForward">fastForward</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="pop"></a>
<h3>pop</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>pop</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Object</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Removes the first element from a Fuse and returns that action object. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">original object passed by user</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#push">push</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pushTween">pushTween</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#unshift">unshift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#shift">shift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#splice">splice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#slice">slice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#reverse">reverse</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#clone">clone</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="push"></a>
<h3>push</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>push</span></td> <td align="left" valign="top"><span class="code">(fuseAction:</span><span class="code">Object [, fuseAction:</span><span class="code">Object, etc...</span><span class="code">]):</span> <span class="code">Number</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Adds one or more elements to the end of a Fuse and returns the new length of the Fuse. <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>myFuse.push({ x:"100" }); // add an action to the end of the sequence</pre> </div> </dd> </dl>
</td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">fuseAction</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">One or more generic "action" objects or arrays in Fuse Object Syntax starting at this argument</div></td> </tr> </table> </dd> <dt><b>Returns:</b></dt> <dd> <div class="comment">new length of Fuse instance</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#pushTween">pushTween</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pop">pop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#unshift">unshift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#shift">shift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#splice">splice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#slice">slice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#reverse">reverse</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#clone">clone</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="pushTween"></a>
<h3>pushTween</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>pushTween</span></td> <td align="left" valign="top"><span class="code">(targets:</span> <span class="code">Object, </span> <br><span class="code"> props:</span> <span class="code">Object, </span> <br><span class="code"> endvals:</span> <span class="code">Object, </span> <br><span class="code"> seconds:</span> <span class="code">Number, </span> <br><span class="code"> ease:</span> <span class="code">Object, </span> <br><span class="code"> delay:</span> <span class="code">Number, </span> <br><span class="code"> callback:</span> <span class="code">Object):</span> <span class="code">Number</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Lets you add an item to the Fuse in ZigoEngine.doTween() syntax. Pushes tween arguments into Fuse instance and accepts the same arguments as ZigoEngine.doTween(). <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targets</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">tween target object or array of target objects</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">props</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">tween property or Array of properties</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">endvals</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">tween end-value or Array of corresponding end-values</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">seconds</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">tween duration</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">ease</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">function, shortcut-string, or custom-easing-panel object</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">delay</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">seconds to wait before performing the tween</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">callback</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">function, string, or object</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">new length of Fuse instance</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doTween">ZigoEngine.doTween</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#push">push</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pop">pop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#unshift">unshift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#shift">shift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#splice">splice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#slice">slice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#reverse">reverse</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#clone">clone</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="removeEventListener"></a>
<h3>removeEventListener</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>removeEventListener</span></td> <td align="left" valign="top"><span class="code">(event:</span> <span class="code">String, </span> <br><span class="code"> handler:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Remove a listener for a particular event <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">event</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">the name of the event ("onComplete", etc)</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">handler</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">the function or object that should be called</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#addEventListener">addEventListener</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="removeTarget"></a>
<h3>removeTarget</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>removeTarget</span></td> <td align="left" valign="top"><span class="code">(t:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Removes targets from the current default target list. <p></p> <div class="comment"> <pre>myFuse.removeTarget(clip5);</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">t</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">accepts one or more targets, or an array of targets</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#target">target</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#addTarget">addTarget</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#getActiveTargets">getActiveTargets</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="resume"></a>
<h3>resume</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>resume</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Resumes a paused Fuse instance and its animations. Attempts to correct for animations that have been disrupted during pause. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#start">start</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#stop">stop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pause">pause</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#skipTo">skipTo</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#fastForward">fastForward</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="reverse"></a>
<h3>reverse</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>reverse</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Reverse the sequence of the Fuse <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#push">push</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pushTween">pushTween</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pop">pop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#unshift">unshift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#shift">shift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#splice">splice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#slice">slice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#clone">clone</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="setStartProps"></a>
<h3>setStartProps</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>setStartProps</span></td> <td align="left" valign="top"><span class="code">(trueOrItemIDs:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">General: Presets start-properties like <code>start_x</code> in all or specific items. <p></p> <div class="comment">In this example a sequence is set up and all start props are set, although the Fuse may not be used until later. <pre>var f:Fuse = new Fuse();
f.target = clip1;
f.push({ start_alpha:0 }); // fade up
f.push({ x:'100', start_scale:150}); // scale down and slide
f.setStartProps(); </pre>If you want to set start props as the Fuse is started, you can pass <code>setStartProps</code> parameters to <a href="../../../com/mosesSupposes/fuse/Fuse.html#start">start</a>.</div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">trueOrItemIDs</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">nothing/null/<a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">ALL</a> to set all start props in the Fuse. To specify some actions while excluding others, pass an array of item indices/labels or a series of indices/labels as separate parameters.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#start">start</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeAndStart">closeAndStart</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="shift"></a>
<h3>shift</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>shift</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Object</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Removes the first element from a Fuse and returns that action object. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">original object passed by user</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#push">push</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pushTween">pushTween</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pop">pop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#unshift">unshift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#splice">splice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#slice">slice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#reverse">reverse</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#clone">clone</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="skipTo"></a>
<h3>skipTo</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>skipTo</span></td> <td align="left" valign="top"><span class="code">(indexOrLabel:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Play-control: Starts Fuse at a particular index/label. <p></p> <div class="comment"> <pre>var f:Fuse = new Fuse();
f.target = clip1;
f.push({ start_alpha:0 });
f.push({ x:'100', label:"slideRight"});
//later...
f.skipTo("slideRight"); // same as f.skipTo(1);</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">indexOrLabel</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">numerical item index or label string. Pass a negative index to count back from end, like -1 for last item.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#start">start</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#stop">stop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pause">pause</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#resume">resume</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#fastForward">fastForward</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="slice"></a>
<h3>slice</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>slice</span></td> <td align="left" valign="top"><span class="code">(indexA:</span> <span class="code">Number, </span> <br><span class="code"> indexB:</span> <span class="code">Number):</span> <span class="code">Array</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Returns a new array instance consisting of a range of elements from the original array without modifying the original array. The array returned by this method includes the indexA element and all elements up to, but not including indexB element. If no parameters are passed, a duplicate of the original array is generated. For more information, see the Flash help explanation of Array.slice. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">indexA</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">indexA:Number (optional) A number specifying the index of the starting point for the slice. If start is negative, the starting point begins at the end of the array, where -1 is the last element.</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">indexB</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">indexB:Number (optional) A number specifying the index of the ending point for the slice. If you omit this parameter, the slice includes all elements from the starting point to the last element of the array. If end is negative, the ending point is specified from the end of the array, where -1 is the last element.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">an array consisting of a range of elements from the original array.</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#push">push</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pushTween">pushTween</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pop">pop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#unshift">unshift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#shift">shift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#splice">splice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#reverse">reverse</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#clone">clone</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="splice"></a>
<h3>splice</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>splice</span></td> <td align="left" valign="top"><span class="code">(startIndex:</span> <span class="code">Number, </span> <br><span class="code">deleteCount:</span> <span class="code">Number, </span> <br><span class="code">fuseAction:</span><span class="code">Object [, fuseAction:</span><span class="code">Object, etc...</span><span class="code">]):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Used to insert or remove items. Works almost exactly like Array.splice. Removed actions are destroyed permanently, with the exception of nested Fuses. <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>myFuse.splice(0, 2); // remove two items from the beginning of the sequence
myFuse.splice(-2, 0, { x:"100" }); // insert an action two steps from the end of the sequence</pre> </div> </dd> </dl> </td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">startIndex</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">index in Fuse to begin removing objects</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">deleteCount</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">number of objects to delete from startIndex</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">fuseAction</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">One or more generic "action" objects or arrays in Fuse Object Syntax starting at this argument</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#push">push</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pushTween">pushTween</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pop">pop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#unshift">unshift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#shift">shift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#slice">slice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#reverse">reverse</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#clone">clone</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="start"></a>
<h3>start</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>start</span></td> <td align="left" valign="top"><span class="code">(setStart:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Play-control: Begins sequence play at index 0, with option to set start props prior to play. <p></p> <div class="comment">In this example all start props are set during start by passing true. <pre>var f:Fuse = new Fuse();
f.target = clip1;
f.push({ start_alpha:0 }); // fade up
f.push({ x:'100', start_scale:150}); // scale down and slide
f.start(true);</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">setStart</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">A <a href="../../../com/mosesSupposes/fuse/Fuse.html#setStartProps">setStartProps</a> call is generated from all arguments before the Fuse begins playing.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#stop">stop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pause">pause</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#resume">resume</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#skipTo">skipTo</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#fastForward">fastForward</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="startRecent"></a>
<h3>startRecent</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>startRecent</span></td> <td align="left" valign="top"><span class="code">(setStart:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Simple Syntax: Restarts the Fuse most recently created using Fuse.<a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>(). <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">setStart</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">A <a href="../../../com/mosesSupposes/fuse/Fuse.html#setStartProps">setStartProps</a> call is generated from all arguments before the Fuse begins playing.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#open">open</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#openGroup">openGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeGroup">closeGroup</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#close">close</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#closeAndStart">closeAndStart</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#addCommand">addCommand</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="stop"></a>
<h3>stop</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>stop</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Play-control: Stops a playing or paused Fuse instance and resets the play-index to 0. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#start">start</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pause">pause</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#resume">resume</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#skipTo">skipTo</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#fastForward">fastForward</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="toString"></a>
<h3>toString</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>toString</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">String</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left"></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Returns:</b></dt> <dd> <div class="comment">a string representation of the fuse including its id, and label if defined.</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#traceItems">traceItems</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#id">id</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#label">label</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="traceItems"></a>
<h3>traceItems</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>traceItems</span></td> <td align="left" valign="top"><span class="code">(indexA:</span> <span class="code">Number, </span> <br><span class="code"> indexB:</span> <span class="code">Number):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Traces specific or all objects contained within the fuse <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">indexA</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">indexA:Number (optional) A number specifying the index of the starting point for the slice. If start is negative, the starting point begins at the end of the array, where -1 is the last element.</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">indexB</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">indexB:Number (optional) - A number specifying the index of the ending point for the slice. If you omit this parameter, the slice includes all elements from the starting point to the last element of the array. If end is negative, the ending point is specified from the end of the array, where -1 is the last element.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#toString">toString</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#id">id</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#label">label</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="unshift"></a>
<h3>unshift</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public </span><span class="askeyword">function </span>unshift</span></td> <td align="left" valign="top"><span class="code">(fuseAction:</span><span class="code">Object [, fuseAction:</span><span class="code">Object, etc...</span><span class="code">]):</span> <span class="code">Number</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Adds one or more elements to the beginning of a Fuse and returns the new length of the Fuse. <dl compact> <dt><b>Usage:</b></dt> <dd> <div class="comment"> <pre>myFuse.unshift({ x:"100" }); // add an action to the beginning of the sequence</pre> </div> </dd> </dl> </td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Parameters:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">fuseAction</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">One or more generic "action" objects or arrays in Fuse Object Syntax starting at this argument</div></td> </tr> </table> </dd> <dt><b>Returns:</b></dt> <dd> <div class="comment">new length of Fuse instance</div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/Fuse.html#push">push</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pushTween">pushTween</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#pop">pop</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#shift">shift</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#splice">splice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#slice">slice</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#reverse">reverse</a>, <a href="../../../com/mosesSupposes/fuse/Fuse.html#clone">clone</a> </div> </dd> </dl> <p></p></td> </tr>
</table>
<hr size="1">
<p></p>The documentation was generated from the following file:<br>
<ul> <li>Fuse.as, Last Modified: 1/3/2007 3:42:52 PM
</li>
</ul>
<p></p>
<hr size="1">
</body>
</html><span class="footer">G&eacute;n&eacute;r&eacute;e le 1/14/2007 11:31:53 PM</span>
